package com.bi.qi;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AopTestController{



    @MyAspect
    @RequestMapping("/t1")
    public String f1() throws InterruptedException {
        System.out.println("正在执行AopTestController f1方法");
        Thread.sleep(10);

        return "f1";
    }


    @RequestMapping("/t2")
    public String f2(){
        System.out.println("正在执行AopTestController f2方法");
        return "f2";

    }


}
